__author__ = 'alex'


class myException(Exception):
    pass

try:
    name = "alex"
    name_list = ['alex', 'eric','jack']
    #print Name
    #$f = file('test.py')
    #print name_list[4]
    raise
except NameError,err:
    print err
except IndexError,err:
    print err
    print 'do sth to make up ....'

else:
    print "----no err happend----"
finally:
    print "----no matter has error or not , this part will run "
print '--do sth else---'